import request from '@/utils/request'

// 查询列表
export function systemProjectList(query) {
  return request({
    url: '/system/project/list',
    method: 'get',
    params: query
  })
}
//查看详情
export function getProject(id) {
  return request({
    url: '/system/project/' + id,
    method: 'get'
  })
}

//修改
export function updateProject(data) {
  return request({
    url: '/system/project',
    method: 'put',
    data: data
  })
}

//全局同步-同步项目负责人、项目、项目合同所有数据
export function globalSynchronize() {
  return request({
    url: '/system/project/globalSynchronize',
    method: 'get'
  })
}